package com.cloudweb.oa.api;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.jsoup.nodes.Element;

public interface IComponent {

    String getId(String name);

    JSONObject getMeta();

    JSONObject getComponent();

    void addChild(IComponent child);

    void setAttribute(String attName, String value);

    void setCommonAttribute(Element element);

    String getTitle();

    JSONArray getChildren();
}
